Skip to main content

Typography

Display

Traditional heading elements are designed to work best in the meat of your page content. When you need a heading to stand out, consider using a display heading—a larger, slightly more opinionated heading style.

ClassExample
.display-1Example
.display-2Example
.display-3Example
.display-4Example
.display-5Example
.display-6Example

Headings

ClassTagExample
.h1h1Example
.h2h2Example
.h3h3Example
.h4h4Example
.h5h5Example
.h6h6Example

Font Sizes

The base font size is 16px. All other font sizes are based on this value.

ClassEquivalent pixelsExample
.fs-3xs10Example
.fs-xxs12Example
.fs-xs13Example
.fs-sm14Example
.fs-md16Example
.fs-lg18Example
.fs-xl20Example
.fs-xxl22Example
.fs-3xl24Example
.fs-4xl32Example

Font Weights

Kyber's predefined font weight classes allow developers and designers to easily apply different font weights to text elements, providing fine-grained control over typography and emphasizing or de-emphasizing text as needed.

ClassEquivalent WeightExample
.fw-light200, 300Example
.fw-normal400Example
.fw-medium500Example
.fw-semibold600Example
.fw-bold700Example

Standalone hyperlinks that do not use the <Link> component can be styled with the .klink class. Which will apply the expected text decoration and hover styling.

Result
Loading...
Live Editor